package org.hao.samples.service;

import java.util.List;
import java.util.Map;

import org.hao.samples.model.ExamScore;
import org.hao.samples.model.ExamTestVO;
import org.hao.samples.model.Exam_test;
import org.hao.samples.model.PagerModel;
import org.hao.samples.model.testVO;
import org.springframework.stereotype.Service;

@Service
public interface ExamTestService {

	List<Exam_test> findAllExamTest();

	void deleteExamTest(Integer id) throws Exception;

	Exam_test getExamTestById(Integer id);

	ExamTestVO getTestById (Integer id);
	
	ExamTestVO saveExamTest(ExamTestVO examTestVO) throws Exception;
	
	void editTest(ExamTestVO examTestVO) throws Exception;
	
	List<testVO> findExamTestBySubIdTypeId(Integer subId, Integer userId);

	Map<String,Object> checkAnswer(String answerString);

	Integer getoutTime(Integer subId, Integer userId);

	List<ExamScore> teacherChexkScore(Integer subId,Integer stuId);

	PagerModel<ExamTestVO> findAllByPage();

}
